﻿using Microsoft.AspNetCore.Mvc.Filters;

namespace CommonUtils
{
    public class AlwaysRunResultFilter : IAlwaysRunResultFilter
    {
        public void OnResultExecuted(ResultExecutedContext context)
        {
            ReflectionUtil.GetSenderMethodName().Print();
        }

        public void OnResultExecuting(ResultExecutingContext context)
        {
            ReflectionUtil.GetSenderMethodName().Print();
        }
    }
}
